package com.power.model.jdao;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.power.model.pojo.Zhiding;
//添加    修改
public interface IZhidingDao extends CrudRepository<Zhiding, Integer> {
	
	@Transactional
	@Modifying(clearAutomatically = true)
	@Query(value="update zhiding set qx=?1 where rwid=?2",nativeQuery =true)
	int updateqx(int qx,int rwid);
}

